server {
	listen 80;
	server_name house.apiote.xyz;

	root /var/www/public;

	location / {
		try_files $uri /index.php$is_args$query_string;
	}

	location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
		expires 365d;
	}

	location ~ \.php$ {
		fastcgi_pass  house:9000;
		fastcgi_index index.php;
		fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
		include       fastcgi_params;
	}

	location ~ /\.ht {
		deny all;
	}
}
